package com.bootdo.zk;

import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;

public class ZKClient implements Watcher {

    @Override
    public void process(WatchedEvent watchedEvent) {

        switch (watchedEvent.getState()) {

            case Closed:
                break;

            case Expired:
                break;

            case AuthFailed:
                break;

            case Disconnected:
                break;

            case SyncConnected:
                break;

            case ConnectedReadOnly:
                break;

            case SaslAuthenticated:
                break;

            case Unknown:
                break;

            case NoSyncConnected:
                break;

            default:throw new UnsupportedOperationException();

        }
    }
}
